package com.synchrona;


import com.synchrona.common.Queue;
import com.synchrona.pluginManager.Blogger;
import com.synchrona.pluginManager.BloggerPlugin;
import com.synchrona.pluginManager.PluginManager;
import com.synchrona.update.Update;
import com.synchrona.user.User;

public class Synchrona {
	
	//Openfire calls for update synchronization
	public void SynchronizeStatus(Update update){
		try {
			User us = (User)update.getUser();
			System.out.println("Jabber Id: " + us.getUserName());
			
			SynchronizationProcessor testThread = SynchronizationProcessor.GetTest();
			Queue queue = Queue.GetQueue();
			System.out.println("Got the service.......");
			Object object = (Object)update;
			testThread.setObject(object);
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	

}
